#!/bin/bash

set -e
while read line
do
	if [ -e loaddict.log ] && fgrep $line loaddict.log
	then
		echo "EXCEPTION SPOTTED DURING LOADDICTIONARY EXECUTION!"
		echo "EXITING WITH FAILURE!"
		exit 1
	fi
done < exc_list.properties

# Handling of parameters
#for (( i=1; i<=$#; i++ ))
#do
#	.....
#done

#for i in $@
#do
#	.....
#done

#  $@ - first parameter; $# - number of parameters; !$# - last parameter